package top.lyc829.zzl_android.ui.message.follow;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.module.DraggableModule;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;

import top.lyc829.zzl_android.R;
import top.lyc829.zzl_android.logic.bean.NoticeCommentBean;

public class NoticeFollowAdapter extends BaseQuickAdapter<NoticeCommentBean, BaseViewHolder> implements DraggableModule {


    public NoticeFollowAdapter() {
        super(R.layout.notice_follow_item);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, NoticeCommentBean commentBean) {
        baseViewHolder.setText(R.id.notice_follow_item_user_name, commentBean.getNickname());
        baseViewHolder.setText(R.id.notice_follow_item_content, commentBean.getText());
        Glide.with(getContext())
                .load(commentBean.getUserAvatar())
                .into((ImageView) baseViewHolder.getView(R.id.notice_follow_item_avatar));
    }
}
